<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Help extends CI_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	*/
	
	public function __construct()
	{
		parent::__construct();
		
		$this->load->helper(array('url','html'));
		$this->load->library(array('user_agent','parser'));
		
	}
	 
	public function index()
	{
		
		redirect(base_url('main'), 'refresh');
	}
	
	
	public function pertanyaan()
	{
		$apa = $this->uri->segment(3, 'home');
		
		switch($apa)
		{
			case "lihat-captcha":
				$data['pertanyaan'] = 'Mengapa Saya lihat captcha?';
				$data['jawaban'] = '&nbsp; Captcha adalah anti-boot image yaitu sebuah teknik untuk memastikan bahwa anda bukan lah robot yang sedang mengganggu kinerja sistem kami. <br /> &nbsp; Untuk itu silakan masukan huruf yang tampil dalam gambar kedalam kotak jawaban yang disediakan.';
			;
			break;
			
			default:
				$data['pertanyaan'] = 'Pertanyaan Tidak Ditemukan';
				$data['jawaban'] = 'Pertanyaan yang anda maksud tidak ditemukan.';
			;
			break;
		}
		
		
		$data['site_title'] = 'Bantuan Dadan Network';
		$data['base_url'] = base_url();

		$this->parser->parse('template/help', $data);
	}
}

/* End of file help.php */
/* Location: ./application/controllers/help.php */
